-
Notifications
You must be signed in to change notification settings - Fork 32
♻️ Extract Celery code to a new simcore library
#7698
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
♻️ Extract Celery code to a new simcore library
#7698
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #7698 +/- ##
==========================================
- Coverage 88.01% 87.70% -0.32%
==========================================
Files 1846 1430 -416
Lines 71249 59396 -11853
Branches 1225 649 -576
==========================================
- Hits 62709 52092 -10617
+ Misses 8187 7085 -1102
+ Partials 353 219 -134
Continue to review full report in Codecov by Sentry.
🚀 New features to boost your workflow:
|
simcore package
simcore packagesimcore package ⚠️
GitHK
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just a few questions
packages/service-library/src/servicelib/fastapi/queued_tasks/app_server.py
Show resolved
Hide resolved
bisgaard-itis
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very cool! Thanks a lot for the heroic effort on this one!
packages/service-library/src/servicelib/fastapi/queued_tasks/app_server.py
Show resolved
Hide resolved
services/storage/src/simcore_service_storage/modules/celery/worker_main.py
Show resolved
Hide resolved
packages/service-library/src/servicelib/queued_tasks/app_server.py
Outdated
Show resolved
Hide resolved
packages/service-library/src/servicelib/fastapi/queued_tasks/app_server.py
Show resolved
Hide resolved
services/storage/src/simcore_service_storage/modules/celery/worker_main.py
Show resolved
Hide resolved
sanderegg
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pair reviewd
|



What do these changes do?
This PR refactors Celery integration by extracting wrapper logic into a dedicated simcore-celery-library package and updates related CI/CD and dependency configuration.
simcore-celery-librarypackage with packaging and setup filesNo new features have been added, but a small redesign improves significantly the usability of the Celery interface. Any dependency with a specific App Server (i.e.
FastAPIoraiohttp) has been removed and aBaseAppServerwrapper acts as a proxy, hiding the real technology used.DISCLAIMER
A new
queued_taskpackage has been created inservicelibthat contains protocols and models independent from Celery technology: they should stay there. A more suitable name can be decided in the future or - better - a general interface that include also old long running tasks.Related issue/s
How to test
Dev-ops
Nothing